<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateBatchTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('batch', function (Blueprint $table) {
            $table->increments('id');
            $table->string('name')->unique()->comment('面试批次');
            $table->integer('time')->default(0)->comment('面试时间戳');
            $table->string('batch_date')->default('')->comment('面试日期');
            $table->string('batch_datetime')->default('')->comment('面试具体时间');
            $table->string('group')->default('')->comment('面试组别');
            $table->tinyInteger('type')->default(1)->comment('面试轮');
            $table->tinyInteger('status')->default(1)->comment('状态');
            $table->integer('created_at')->nullable();
            $table->integer('updated_at')->nullable();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('batch');
    }
}
